package com.shujia.extends_.exer;

// 学生类继承人类(学号，班级，课程)
public class Student extends Person {
    private String stuNo;
    private String grade;


    public void study() {
        System.out.println("study...");
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

}
